function initHeader(){
    var header="<div class='row' style='height:45px' id='header1'>"+
    " <nav class='navbar navbar-inverse' style='height: 100%' role='navigation'>"+
    " <div class='col-md-6 col-xs-6' >"+
    "<ul class='nav navbar-nav pull-left' style='width: 100%'>"+
    "<li><a class='navbar-brand' href='http://111.230.107.192:8082/home'>租房系统</a></li>"+
    "<li><a class='navbar-brand' href='#'>业主</a></li>"+
    "</ul>"+" </div>"+
    "<div class='col-md-6 col-xs-6'>"+
    "<ul class='nav navbar-nav pull-right' style='width: 100%;'>"+
        "<li class='pull-right'>"+
           " <a href='http://111.230.107.192:8082/logout' class='navbar-brand' style='font-size: 15px'>退出</a>"
        "</li>"
        "<li class='pull-right'>"+
            "<a href='http://111.230.107.192:8082/showMyorder' class='navbar-brand' style='font-size: 15px'>我的房</a>"
        "</li>"
        "<li class='pull-right'>"+
            "<a href='http://111.230.107.192:8082/showUser' class='thumbnail' style='padding: 3px;margin: 3px;height: 45px;width: 45px'>"
                "<img id='avatar-small' style='width: 100%;height: 100%;' th:if='${avatar}!=null' th:src='${avatar}'/>"
            "</a>"
        "</li>"
    "</ul></div></nav></div>"
    $('.panda-header').html(header);
}